import {
    wxofficialAccessToken,
    loginWxOfficial
} from "@/http/api.js"; //引入接口
const state = () => ({
    username: ""
});

const actions = {
    async wxofficialAccessTokenApi(store, params) {
        return await wxofficialAccessToken(params);
    },
    async loginWxOfficialApi(store, params) {
        return await loginWxOfficial(params);
    },
    
}; //actions是vuex的内置对象  任意异步操作 说白了就是一个异步


export default {
    namespaced: true,
    state: state,
    actions //简写
}